/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙，邂逅框架梦]
 * 
 * https://zhiqim.org/project/zhiqim_framework/zhiqim_orm.htm
 *
 * Zhiqim Orm is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
package org.zhiqim.orm.test.dbo;

import java.io.Serializable;

import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.json.Jsons;
import org.zhiqim.orm.annotation.*;

/**
 * 测试小数格式 对应表《T_DECIMAL》
 */
@AnAlias("TDecimal")
@AnTable(table="T_DECIMAL", key="T_ID", type="InnoDB")
public class TDecimal implements Serializable
{
    private static final long serialVersionUID = 1L;

    @AnTableField(column="T_ID", type="long", notNull=true)    private long tId;    //1.测试编号
    @AnTableField(column="T_DM5_2", type="decimal,5,2", notNull=true)    private double tDm52;    //2.测试5位长度，小数2位
    @AnTableField(column="T_DM10_3", type="decimal,10,3", notNull=true)    private double tDm103;    //3.测试10位长度，小数3位
    @AnTableField(column="T_DM15_4", type="decimal,15,4", notNull=true)    private double tDm154;    //4.测试15位长度，小数4位

    public String toString()
    {
        return Jsons.toString(this);
    }

    public long getTId()
    {
        return tId;
    }

    public void setTId(long tId)
    {
        this.tId = tId;
    }

    public double getTDm52()
    {
        return tDm52;
    }

    public void setTDm52(double tDm52)
    {
        this.tDm52 = tDm52;
    }

    public double getTDm103()
    {
        return tDm103;
    }

    public void setTDm103(double tDm103)
    {
        this.tDm103 = tDm103;
    }

    public double getTDm154()
    {
        return tDm154;
    }

    public void setTDm154(double tDm154)
    {
        this.tDm154 = tDm154;
    }

}
